package com.scs.application.modules.cfg.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityIndexAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 通用参数
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "通用参数表")
@TableName("cfg_parameter")
@EntityIndexAnnotation(ux = {"param_key"})
public class Parameter extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "参数组",
            length = "50",
            not_null = true,
            default_value = "default",
            comment = ""
    )
    private String groupKey;

    @EntityFieldAnnotation(
            text = "参数标识",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String paramKey;

    @EntityFieldAnnotation(
            text = "参数名称",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String name;

    @EntityFieldAnnotation(
            text = "参数值",
            not_null = true,
            default_value = "",
            type = EntityFieldType.LONGTEXT,
            comment = ""
    )
    private String value;

    @EntityFieldAnnotation(
            text = "备注",
            length = "250",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

    @EntityFieldAnnotation(
            text = "附件名称",
            length = "50",
            not_null = false,
            default_value = "",
            comment = "附件名称"
    )
    private String fileName;

    @EntityFieldAnnotation(
            text = "附件路径",
            length = "200",
            not_null = false,
            default_value = "",
            comment = "附件路径"
    )
    private String filePath;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

}
